package com.tql.mall.common.result;

import lombok.Getter;


/**
 * @Author: tyk
 * @Date: 2023/4/15 19:24
 * @Description: 统一返回结果状态信息类
 */
@Getter
public enum RC {

    SUCCESS(200, "成功"),
    FAIL(201, "失败"),
    SERVICE_ERROR(203, "服务异常"),
    ILLEGAL_REQUEST(204, "非法请求"),
    PAY_RUN(205, "支付中"),


    LOGIN_FAIL(301, "用户名或密码错误"),
    LOGIN_AUTH(302, "未登陆"),
    PERMISSION(303, "权限不足"),
    ORDER_ERROR(304, "订单已支付或者订单已关闭"),
    IP_ERROR(305, "IP异常");


    private final Integer code;

    private final String msg;

    RC(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
